package net.easyjava.framework.web.security;

/**
 * Created by wxnacy on 16/3/7.
 */
public class UserSecurityConstants {
    /**
     * 用户登录后返回的head key
     */
    public static final String KEY_HEAD = "U-I";
    public static final String KEY_ADMIN_HEAD = "A-U-I";
    /**
     * 加密key
     */
    public static final String KEY_USER_SECURITY = "ba4c53d6d51b1e5a6f61c216b140d1aa";
    public static final String KEY_USER_SECURITY_ID = "aacc2759e55b2ca8cd847d1dd0086f84";

    /**
     * 登录需要携带的版本号和来源
     */
    public static final String API_VERSION = "version";
    public static final String API_SOURCE = "source";


    /**
     * 日志记录
     */
    public static final String USER_SECURITY_SET_TIME = "设置用户环境数据耗时:{}";
    public static final String USER_SECURITY_LOGIN_DATA = "用户登录使用的环境数据[{}]";


    /**
     * 错误日志
     */
    public static final String MESSAGE_USER_ID_BY_SOMEONE_UPDATE= "用户[{}]被篡改为[{}]";
    public static final String MESSAGE_AES_ENCRYPT_ERROR = "AES生成密钥失败,模块[{}],数据[{}]";
    public static final String MESSAGE_AES_DECRYPT_ERROR = "AES解密失败,模块[{}],token[{}]";
}
